<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <form name="form">
      <p>
        <input type="text" name="uname" />
      </p>
    </form>
    <script>
      document.form.uname.onchange = function () {
        console.log("onchange");
      };

      document.form.uname.oninput = function () {
        console.log("oninput");
      };

      //----------

      document.form.uname.oncut = function () {
        console.log("oncut");
      };

      document.form.uname.oncopy = function () {
        console.log("oncopy");
      };

      document.form.uname.onpaste = function () {
        console.log("onpaste");
      };
    </script>
  </body>
</html>
